package org.monkey.example.order.config;

import org.monkey.common.cbs.util.DocketFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.oas.annotations.EnableOpenApi;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.spring.web.plugins.Docket;

@EnableOpenApi
@Configuration
public class OrderSwaggerConfig {



  /**
   * 配置文档生成最佳实践
   * @param apiInfo
   * @return
   */
  @Bean
  public Docket createRestApi(ApiInfo apiInfo) {
    return DocketFactory.build(apiInfo,"订单示例");
  }



}
